module.exports = {
	//获取时间
	getXHS(n) {
		//获取小时
		let hour = this.add0(Math.floor(n / 3600));
		//获取分钟
		let minute = this.add0(Math.floor((n % 3600) / 60));
		//获取描述
		let second = this.add0(n % 60);

		return `${hour}:${minute}:${second}`;
	},
	add0(n) {
		return n < 10 ? "0" + n : n;
	},
};
